package calvin.study.rabbitmq.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import calvin.study.rabbitmq.mq.RabbitOrderSender;

/**
 * 微信模板消息推送
 * @author wh
 *
 */
@RestController
@RequestMapping("wxSendMsg")
public class WxTempMsgController {
	
	@Autowired
	private RabbitOrderSender rabbitOrderSender;
	
	
	@GetMapping("/temp/msg")
	public String tempMsg() throws Exception {
		String msgId = "1865762";
		rabbitOrderSender.sendWxMsg(msgId);
		return "SUCCESS";
	}	
}
